/**
 * Created by on 2017/4/28.
 */
export function _getAccessToken(waybillNo) {      //9.获取附件访问令牌AccessToken  get
  return `/claims/${waybillNo}/attachments/accessToken`
}

export function _putFiles(waybillNo, groupCode) {               //7.新增图片  put
  return `/claims/${waybillNo}/attachments?groupCode=${groupCode}`
  //return `/claims/${waybillNo}/attachments`
}

export function _getAttachments(waybillNo, caseType) {      //4.查询理赔附件组  get caseType=USER DRIVER
  return `/claims/${waybillNo}/attachments/groups?caseType=${caseType}`
  //return `/claims/${waybillNo}/attachments`
}

export function _deleteAttachments(waybillNo, attachId) {    //8.删除理赔附件 delete
  return `/claims/${waybillNo}/attachments/${attachId}`
}

export function _postApproveRequest(waybillNo) {    //10.提交核损请求 post
  return `/claims/${waybillNo}/approveRequest`
}
